package org.pers;

import java.util.ArrayList;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;


public class SimpleHandler implements SimpleHandlerInterface{


	public List<Person> getDouble(int a) {
		List<Person> sampleList = new ArrayList<Person>();
		Person p = new Person();
		p.setName("sumit");
		p.setAge(10);
		sampleList.add(p);
		p = new Person();
		p.setName("chauhan");
		p.setAge(100);
		sampleList.add(p);
		p = new Person();
		p.setName("kumar");
		p.setAge(1000);
		sampleList.add(p);
		
		
		return sampleList;
	}

	
	public int sum(int a,  int b) {
		// TODO Auto-generated method stub
		return a+b;
	}

}
